﻿using FastIOC.Annotation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test
{
    public class TransitionalMovie
    {
        public TransitionalMovie()
        {
            Console.WriteLine("TransitionalMovie");
        }


        [Transitional]
        public virtual void Test1()
        {
            Console.WriteLine("Test1");
            
        }

        [Transitional]
        public virtual string Test2()
        {
            Console.WriteLine("Test2");
            throw new Exception("111");
            return "Hello";
        }

        [Transitional(AutoRollBack = false)]
        public virtual void Test3(string Key)
        {
            Console.WriteLine("Test3");
            Console.WriteLine(Key);

        }
    }
}
